<template>
  <u-modal :show="show" title="温馨提示"
  content='七巷里的业务模式采用会员制。用手机号或资格证号登录后可享受购物、参与活动、分享好友、专属营养顾问服务等功能'
  :showCancelButton="true" confirmColor="#59B235"
  cancelText="暂不登录" confirmText="立即登录" @confirm="confirm" @cancel="cancel"
  ></u-modal>
</template>

<script>

export default {
  props: {
    show: {
      type: Boolean,
      default: () => false,
    },
  },
  data() {
    return {
    }
  },
  methods: {
    confirm() {
      console.log('confirm')
      this.$emit('confirm');
      uni.switchTab({
        url: '/pages/my/index'
      })
      this.$emit('cancel');
    },
    cancel() {
      this.$emit('cancel');
    },
  },
}
</script>

<style lang="scss" scoped>

</style>